<?php

namespace app\admin\service\common\token;

interface TokenRepositoryInterface
{
    public function save(array $tokenInfo, string $type): void;

    public function find(string $token, string $type): ?array;

    public function delete(string $token, string $type): void;

    public function findByUser(string $username): array;

    public function deleteByUser(string $username): void;

    public function updateOnline(string $token): void;

    public function deleteExpired(): void;
}